import 'package:example/bean/blog_bean_entity.dart';
import 'package:example/ext/response_ext.dart';
import 'package:example/generated/l10n.dart';
import 'package:example/viewmodel/second_model.dart';
import 'package:flutter_scaffold/flutter_scaffold.dart';

class SecondViewModel extends BaseViewModel<SecondModel> {
  var title = S.current.title.obs;
  var leght = true.obs;


  @override
  void onReady() {
    super.onReady();
    showStatusNormal();
    print("====> onReady");
    // launch(() async {
    //   Response<dynamic> data = await model.getData();
    //   List<BlogBeanEntity>? beans = data.check<List<BlogBeanEntity>>();
    //   title.value = beans.toString();
    //   showStatusNormal();
    // });
  }

  @override
  void onClose() {
    super.onClose();
    print("====> onClose");
  }

  @override
  SecondModel initModel() {
    return SecondModel();
  }

  @override
  void onPaused() {
    print("====> onPaused");
  }

  @override
  void onResumed() {
    print("====> onResumed");
  }
}

